package com.lucky.common.enums;

import lombok.Getter;

/**
 * 错误码和说明
 * Create by Administrator
 * 2018/3/2 0002
 * 下午 2:53
 **/
@Getter
public enum ResultEnum {

    ADMIN_SERVER_ERROR(500,"服务器错误，请联系管理员"),
    NOT_FOUND_RESOURCES(404,"未找到资源"),


    PARAMETER_ERROR(9001,"参数错误"),
    SAVE_ERROR(9002,"保存失败"),
    UPDATE_ERROR(9003,"更新失败"),
    DELETE_ERROR(9004,"删除失败"),
    NOT_ALLOWED_DELETE(9005,"该类目已和商品关联不允许删除"),

    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
